//
//  ArtTour.h
//  SmartRoadShow
//
//  Created by  ibokan on 10-9-25.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//


//艺术之旅
#import <Foundation/Foundation.h>
@interface ArtTour : NSObject 
{
	int _id;
	NSString *_city;
	NSString *_starttime;
	NSString *_endtime;
	NSString *_location;
	
	NSString *_address;
	NSString *_mapURL;
	NSString *_thumb;
	NSString *_datepic;
	
}
@property int _id;
@property (nonatomic, retain) NSString *_city;
@property (nonatomic, retain) NSString *_starttime;
@property (nonatomic, retain) NSString *_endtime;
@property (nonatomic, retain) NSString *_location;
@property (nonatomic, retain) NSString *_address;
@property (nonatomic, retain) NSString *_mapURL;
@property (nonatomic, retain) NSString *_thumb;
@property (nonatomic, retain) NSString *_datepic;

+ (int)deleteAll;

+(BOOL) IsExistArtTour:(NSString *)dateString;

+(NSArray *) searchAllArtTour:(NSString *)dateString;

+(NSArray *) findAll;

+ (int) insertWithID:(int)Id City:(NSString *) city Starttime:(NSString *)start Endtime:(NSString *)end
			Location:(NSString *)loca Thumb:(NSString *)thmb Address:(NSString *)addrs MapURL:(NSString *) mapUrl Datepic:(NSString *) dateP;
//+(int) insertWithArtTourId:(int)artTourId City:(NSString *)city Starttime:(NSString *)start Endtime:(NSString *)end Position:(NSString *)posi Description:(NSString *)description;

+(int)delete:(int)Id;

-(id) initWithID:(int)Id City:(NSString *)city Starttime:(NSString *)start Endtime:(NSString *)end 
		Location:(NSString *)loca Address:(NSString *)addr Thumb:(NSString *) thmb MapURL:(NSString *) mapUrl Datepic:(NSString *) dateP;

-(int) Id;
-(NSString *)city;
-(NSString *) starttime;
-(NSString *)endtime;
-(NSString *)location;
-(NSString *) address;
-(NSString *)thumb;
- (NSString *) mapURL;
- (NSString *) datepic;

@end
